//
//  UILabel+FontExtension.h
//  FRQBluetoothKit_Example
//
//  Created by admin on 2023/12/11.
//  Copyright © 2023 xuchunhai. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UILabel (FontExtension)

@end

#import "UILabel+FontExtension.h"

#define kGlobalFontFamilyName @"Montserrat-Bold"       // 全局字体名称

@implementation UILabel (FontExtension)

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setGlobalFont];
    }
    
    return self;
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self setGlobalFont];
}

- (void)setGlobalFont
{

    [self setFont:[UIFont fontWithName:kGlobalFontFamilyName size:17]];
    
}

@end

NS_ASSUME_NONNULL_END
